﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using googlemaps;
using ClientMobile.SSVService;

namespace ClientMobile
{
    public partial class outbox : PhoneApplicationPage
    {
        public outbox()
        {
            InitializeComponent();
            Singleton s = Singleton.Instance;
            Service1SoapClient ser = new Service1SoapClient();
            ser.AfficherListeMsgChauffeurCompleted += new EventHandler<AfficherListeMsgChauffeurCompletedEventArgs>(ser_AfficherListeMsgChauffeurCompleted);
            ser.AfficherListeMsgChauffeurAsync(s.Chauff.id_chauffeur);
           }

        void ser_AfficherListeMsgChauffeurCompleted(object sender, AfficherListeMsgChauffeurCompletedEventArgs e)
        {
            listBox1.DataContext = e.Result;
        }

        private void ApplicationBarIconButton_Click(object sender, EventArgs e)
        {
            NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
        }

        private void ApplicationBarIconButton_Click_1(object sender, EventArgs e)
        {
            // refresh
        }

      

       


       
    }
}